package cn.stylefeng.guns.modular.gui.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 优惠券
 * </p>
 *
 * @author Dong
 * @since 2023-06-13
 */
@TableName("p_quan")
public class Quan implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * ID
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 折扣
     */
    @TableField("zk")
    private BigDecimal zk;

    /**
     * 发放数量
     */
    @TableField("num")
    private Integer num;

    /**
     * 有效期截至
     */
    @TableField("yxq")
    private Integer yxq;

    /**
     * 剩余
     */
    @TableField("shengyu")
    private Integer shengyu;

    /**
     * 删除
     */
    @TableField("del")
    private Integer del;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public BigDecimal getZk() {
        return zk;
    }

    public void setZk(BigDecimal zk) {
        this.zk = zk;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getYxq() {
        return yxq;
    }

    public void setYxq(Integer yxq) {
        this.yxq = yxq;
    }

    public Integer getShengyu() {
        return shengyu;
    }

    public void setShengyu(Integer shengyu) {
        this.shengyu = shengyu;
    }

    public Integer getDel() {
        return del;
    }

    public void setDel(Integer del) {
        this.del = del;
    }

    @Override
    public String toString() {
        return "Quan{" +
        "id=" + id +
        ", zk=" + zk +
        ", num=" + num +
        ", yxq=" + yxq +
        ", shengyu=" + shengyu +
        ", del=" + del +
        "}";
    }
}
